package constants

const (
	// SyncLocalObjBrand obj of local brand
	SyncLocalObjBrand = "brands"
	// SyncRemoteObjBrand obj of remote webpos_brand
	SyncRemoteObjBrand = "bilinadmin" // webpos_brand -> bilinadmin

	// SyncLocalObjBrandWarehouse obj of local brandWarehouse
	SyncLocalObjBrandWarehouse = "brand_warehouses"
	// SyncRemoteObjBrandWarehouse obj of remote inventory_warehouse
	SyncRemoteObjBrandWarehouse = "inventory_warehouse"

	
	// SyncLocalObjProduct obj of local product
	SyncLocalObjProduct = "products"
	// SyncRemoteObjProduct obj of remote webpos_prod -> bilinprod
	SyncRemoteObjProduct = "bilinprod"

	// SyncLocalObjProductSpec obj of local product_spec
	SyncLocalObjProductSpec = "product_specs"
	// SyncRemoteObjProductSpec obj of remote webpos_prod_sku -> bilinprod_sku
	SyncRemoteObjProductSpec = "bilinprod_sku"

	// SyncLocalObjProductAttributeKey obj of local product_attribute_key
	SyncLocalObjProductAttributeKey = "product_attribute_keys" //todo: 废弃不用
	// SyncRemoteObjProductAttributeKey obj of remote webpos_property_group
	SyncRemoteObjProductAttributeKey = "webpos_property_group" //todo: 废弃不用



	// SyncLocalPkNameBrand pk_name of local brands
	SyncLocalPkNameBrand = "id"
	// SyncRemotePkNameBrand pk_name of remote webpos_brand
	SyncRemotePkNameBrand = "sg_id"

	// SyncLocalPkNameBrandWarehouse pk_name of local brand_warehouses
	SyncLocalPkNameBrandWarehouse = "id"
	// SyncRemotePkNameBrandWarehouse pk_name of remote inventory_warehouse
	SyncRemotePkNameBrandWarehouse = "id"


	// SyncLocalPkNameProduct pk_name of local product
	SyncLocalPkNameProduct = "id"
	// SyncRemotePkNameProduct pk_name of remote webpos_prod
	SyncRemotePkNameProduct = "id"

	// SyncLocalPkNameProductSpec pk_name of local product_spec
	SyncLocalPkNameProductSpec = "id"
	// SyncRemotePkNameProductSpec pk_name of remote webpos_prod_sku
	SyncRemotePkNameProductSpec = "id"

	// SyncLocalPkNameProductAttributeKey pk_name of local product_attribute_key
	SyncLocalPkNameProductAttributeKey = "id" //todo: 废弃不用
	// SyncRemotePkNameProductAttributeKey pk_name of remote webpos_property_group
	SyncRemotePkNameProductAttributeKey = "id" //todo: 废弃不用
)

var (
	// SyncLocalFieldsBrand fields of local brands
	SyncLocalFieldsBrand = []string{"remote_pk", "name"}
	// SyncRemoteFieldsBrand fields of remote webpos_brand
	SyncRemoteFieldsBrand = []string{"sg_id", "store_group_name"}

	// SyncLocalFieldsBrandWarehouse fields of local brand_warehouses
	SyncLocalFieldsBrandWarehouse = []string{"remote_pk", "origin", "name", "tel", "linkman", "address", "lng", "lat", "city_code", "deadline", "storage_mode", "store_id", "p_store_id", "permission_id", "delivery_modes"}
	// SyncRemoteFieldsBrandWarehouse fields of remote inventory_warehouse
	SyncRemoteFieldsBrandWarehouse = []string{"id", "data_type", "name", "mobile", "contact", "address", "longitude", "latitude", "city_code", "deadline", "storage_mode", "store_id", "p_store_id", "permission_id", "pickUp$delivery_modes", "cityExpress$delivery_modes", "ordinaryExpress$delivery_modes"}

	// SyncLocalFieldsProduct fields of local product
	SyncLocalFieldsProduct = []string{"remote_pk", "name", "pics", "intro", "intro_pics", "price_min", "remote_prd_type_id"}
	// SyncRemoteFieldsProduct fields of remote webpos_prod
	SyncRemoteFieldsProduct = []string{"id", "name", "title_pics", "detail_description", "detail_pics", "standard_price", "prod_type_id"}

	// SyncLocalFieldsProductSpec fields of local product_spec
	SyncLocalFieldsProductSpec = []string{"remote_pk", "price", "product_attributes"}
	// SyncRemoteFieldsProductSpec fields of remote webpos_prod_sku
	SyncRemoteFieldsProductSpec = []string{"id", "price", "property_pair"}

	// SyncLocalFieldsProductAttributeKey fields of local product_attribute_key //todo: 废弃不用
	SyncLocalFieldsProductAttributeKey = []string{"remote_pk", "product_attribute_values$$value"}
	// SyncRemoteFieldsProductAttributeKey fields of remote webpos_prod_sku //todo: 废弃不用
	SyncRemoteFieldsProductAttributeKey = []string{"id", "name", "properties"}
)
